package org.jypj.dev.vo;

import com.google.gson.Gson;

/**
 * 用来搜索的VO
 *
 * @author ChenYu
 */
public class SearchVo {

    private String roadId;// 交路ID
    private String trainId;// 车次ID
    private String trainCode;// 车次
    private String trainNum;// 车组号
    private String trainType;//车型
    private String userNum;// 用户编号
    private String startDate;// 开始日期

    private String loginId;//登录ID
    private String tableName;//表名
    private String tempTrain;//临客
    private String num;//汉口武汉全部
    private String q;//关键字搜索


    public String getTrainCode() {
        return trainCode;
    }

    public void setTrainCode(String trainCode) {
        this.trainCode = trainCode;
    }

    public String getUserNum() {
        return userNum;
    }

    public void setUserNum(String userNum) {
        this.userNum = userNum;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getTrainNum() {
        return trainNum;
    }

    public void setTrainNum(String trainNum) {
        this.trainNum = trainNum;
    }

    public String getRoadId() {
        return roadId;
    }

    public void setRoadId(String roadId) {
        this.roadId = roadId;
    }

    public String getTrainId() {
        return trainId;
    }

    public void setTrainId(String trainId) {
        this.trainId = trainId;
    }

    public String getTrainType() {
        return trainType;
    }

    public void setTrainType(String trainType) {
        this.trainType = trainType;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTempTrain() {
        return tempTrain;
    }

    public void setTempTrain(String tempTrain) {
        this.tempTrain = tempTrain;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getQ() {
        return q;
    }

    public void setQ(String q) {
        this.q = q;
    }

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }
}
